package com.eddy.liveline.user.dao;

import com.eddy.liveline.user.pojo.Account;
import com.eddy.liveline.user.pojo.AccountTableQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AccountMapper {

    Account getById(@Param("id") String id);

    List<Account> query(AccountTableQuery query);

    boolean batchSave(List<Account> accounts);

    boolean deleteById(@Param("id") String id);

    boolean deleteByIds(List<String> ids);

    boolean batchUpdate(List<Account> accounts);

}
